package one_to_many;

public class Cat {

	private String id;
	//private int person_id;
	private String catName;
	private String sex;
	private float weight;
	
	private Person person;

	public String getCatName() {
		return catName;
	}

	public void setCatName(String catName) {
		this.catName = catName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}
	/*
	public int getPerson_id() {
		return person_id;
	}

	public void setPerson_id(int person_id) {
		this.person_id = person_id;
	}
	*/
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}
	
	public boolean equals(Object other)
	{
    	if (this == other)
    	{
    		return true;
    	}
    	if ( !(other instanceof Person) )
    	{
    		return false;
		}
        return true;
	}

}
